package com.lyb.springbootredisclient.app;

import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.OutputStream;
import java.util.Map;

/**
 * Excel 相关操作类(大数据量写入但受Excel数据行数限制)
 * 先写入Excel标题(writeExcelTitle)，再写入数据(writeExcelData)，最后释放资源(dispose)
 */
public class ExportExcel2022 {

    //默认列宽度
    private final int DEFAULT_COLUMN_SIZE = 30;
    
    //刷新写入硬盘数据阀值
    private final int flushRows = 1000;
    
    //声明一个模板工作薄(写入流式数据)
    private Workbook writeDataWorkBook;
    
    //样式列表
    private Map cellStyleMap;
    //Excel当前数据行数(将要写入数据的索引数)
    
    private int currentRowNum = 0;
    //数据输出流
    private OutputStream outputStream;


}
